﻿//_______________________________________________________________________________________________________________________
// Copy Right (c) 2010, 2011 SapiensIT Consulting GmbH, all rights reserved
//_______________________________________________________________________________________________________________________
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT
// NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
//_______________________________________________________________________________________________________________________
// PROJECT:     sapiens.at.SharePoint (SharePoint 2010/V4)
//_______________________________________________________________________________________________________________________
// VERSION:     2.0
//_______________________________________________________________________________________________________________________
// DESCRIPTION: 
//_______________________________________________________________________________________________________________________
// LICENSE:     Different licens Types apply to different file types:
//               - Source code files are governed by the MICROSOFT PUBLIC LICENSE (Ms-PL)
//               - Binary files are governed by MSDN CODE GALLERY BINARY LICENSE
//               - Documentation files are governed by CREATIVE COMMONS ATTRIBUTION 3.0 LICENSE
//
//               The licenses can be found at the projects source location.
//               If you do not agree, don't use it!
// 
//_______________________________________________________________________________________________________________________
// Start SharePoint Branding, visit http://www.cliggin.com! Visit us on http://www.sapiens.at! Tell your friends! 
//_______________________________________________________________________________________________________________________
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.SharePoint;

namespace Sapiens.at.SharePoint.Entities
{
    /// <summary>
    /// Represents the base listitem of SharePoint (Contenttypeid: 0x01).
    /// The class itself has no extended functionality. It is the standard implementation of <see cref="Entity"/>.
    /// </summary>
    [ContentType(CTYPE_ID)]
    public class Document : Item
    {
        #region Constants
        public new const string CTYPE_ID = "0x0101";
        public new static readonly SPContentTypeId CTypeId = new SPContentTypeId(CTYPE_ID);
        #endregion

        #region Constructors
        public Document(int id, string title) : base(id, title) { }
        public Document(int id, string title, SPList list) : base(id, title, list) { }
        public Document(SPItemEventProperties eventProperties, SPWeb web) : base(eventProperties, web) { }
        public Document(SPListItem listItem) : base(listItem) { }
        public Document(SPItemEventProperties eventProperties, SPListItem listItem, SPWeb web) : base(eventProperties, listItem, web) { }
        #endregion
    }
}
